package com.sharekitchen.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

@Mapper
@Transactional
public interface LineDataMapper {


    @Select(" select count(*) from `share-kitchen`.`order`where `start_time` <= #{nowDate}")
    Integer getDateCount(String nowDate);

    @Select(" select count(*) from `share-kitchen`.`user`where `create_time` <= #{nowDate}")
    Integer getUserCount(String nowDate);

}
